<template>
    <!-- <div>
        <input :value="fangfang" @input="emit('update:geyaochild',$event.target.value)" />
    </div> -->
    <div>
        儿子
       {{ fangfang }}
       <button @click="handleToCpmputed($parent)">修改电脑</button>
    </div>

 
  
</template>

<!-- <Geyao  :value="fangfang" @update:fangfang="emit" /> -->
<script setup>
 import { defineProps, ref } from 'vue'
var fangfang = ref('花');
defineExpose({ fangfang })
 function handleToCpmputed(parent) {
    console.log(parent.geyao);
    parent.geyao = '哈哈哈'
}

</script>